package com.yixing.tech.common.vo.s3;

import com.yixing.tech.common.base.BaseVO;
import com.yixing.tech.common.base.ConditionsVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * @author yixing tech
 * at 2021/12/31
 * describe：
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class MenuVO extends BaseVO {

    String name;
    String iconName;
    Integer sort;
    String parentId;
    String rootId;
    ApplicationVO application;
    WebPageVO webPage;
    List<MenuVO> children;
    /**
     * 是否选中
     */
    Boolean checked;
    /**
     * 0树形，1平铺，2间隔
     */
    Integer style;
    /**
     * 是否是自定义菜单
     */
    Boolean isPrivate;
    /**
     * 是否隐藏
     */
    Boolean isHide;

    /**
     * 初始过滤条件
     */
    List<ConditionsVO.Condition> conditions;
    /**
     * 菜单级变量配置
     */
    Map<String,Object> variables;
    {
        sortCondition = new Sort("sort","asc");
    }

}
